import request from '/@/utils/request'
// 查询设备状态日志列表
export function listSensorsStatusLog(query:object) {
  return request({
    url: '/api/v1/system/sensorsStatusLog/list',
    method: 'get',
    params: query
  })
}
// 查询设备状态日志详细
export function getSensorsStatusLog(id:number) {
  return request({
    url: '/api/v1/system/sensorsStatusLog/get',
    method: 'get',
    params: {
      id: id.toString()
    }
  })
}
// 新增设备状态日志
export function addSensorsStatusLog(data:object) {
  return request({
    url: '/api/v1/system/sensorsStatusLog/add',
    method: 'post',
    data: data
  })
}
// 修改设备状态日志
export function updateSensorsStatusLog(data:object) {
  return request({
    url: '/api/v1/system/sensorsStatusLog/edit',
    method: 'put',
    data: data
  })
}
// 删除设备状态日志
export function delSensorsStatusLog(ids:number[]) {
  return request({
    url: '/api/v1/system/sensorsStatusLog/delete',
    method: 'delete',
    data:{
      ids:ids
    }
  })
}
// 关联sensors表选项
export function listSensors(query:object){
   return request({
     url: '/api/v1/system/sensors/list',
     method: 'get',
     params: query
   })
}
